server {
    
    listen 443 ssl;
    server_name www.koruida.com;


    ssl_certificate   /opt/cert/3546356_koruida.com.pem;
    ssl_certificate_key  /opt/cert/3546356_koruida.com.key;
    ssl_session_timeout 5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;

    lua_code_cache on;

    gzip on;

    gzip_vary on;
    gzip_proxied any;
    gzip_comp_level 6;
    gzip_buffers 16 8k;
    gzip_http_version 1.1;
    gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
    

    default_type 'text/html';
    charset utf-8;

    location /check {
        default_type 'text/plain';
        content_by_lua_block {
            ngx.say('https.lua')
        }  
    }

    location /abc/ {
        proxy_pass http://www.baidu.com/;
    }

    location / {
        add_header 'Access‐Control‐Allow‐Origin' '*';
        add_header 'Access‐Control‐Allow‐Credentials' 'true';
        add_header 'Access‐Control‐Allow‐Methods' '*';
       

        alias /opt/webrtc/mediasoup-demo/server/public/;
        index index.html index.htm;
    }

}
